// vite.config.ts
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

export default defineConfig({
  plugins: [react()],
  root: 'src/renderer',
  build: {
    target: 'esnext',
    outDir: '../../dist/renderer',
    emptyOutDir: true
  },
  server: {
    port: 8080
  },
  optimizeDeps: {
    include: ['react', 'react-dom']
  }
})